package com.video.api.client;


import com.video.api.dto.AppUser;
import com.video.api.dto.InsertVideoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("user-service")
public interface UserClient {

    /*
     * 新增视频
     * */
    @PostMapping("/video-list/insert")
    void insert(@RequestBody InsertVideoDto dto);

    /**
     * 修改用户在线状态
     */
    @PostMapping("/app-user/update")
    void updateUser(@RequestBody AppUser user);

    /**
     * 查询用户消息
     */
    @GetMapping("/app-user/info")
    AppUser info();
}
